package com.lsl.proxy_pattern.example;

import com.lsl.proxy_pattern.example.Proxy.ProxySearcher;
import com.lsl.proxy_pattern.example.Subject.Searcher;

/**
 * description:
 *
 * @author: liushengli
 * data: 2022/12/1
 */
public class Client {
    public static void main(String[] args) {
        //反射生成对象，针对抽象编程，客户端无须分辨真实主题类和代理类
        Searcher searcher;
        searcher = new ProxySearcher();
        String result = searcher.DoSearch("杨过", "玉女心经");
        System.out.println(result);
    }
}
